{subtemplate jameson_read:gjj/read_header}
<!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
<div class="uk-grid-collapse" uk-grid>
	<div class="uk-width-medium">
		<div class="uk-padding-small border-cc">
			<div class="uk-card">
			    <div class="uk-card-header">
			        <div class="uk-grid-small uk-flex-middle" uk-grid>
			            <div class="uk-width-auto">
			                <img width="48" class="uk-border-circle" src="{eval echo avatar($_G['uid'],'big',true);}">
			            </div>
			            <div class="uk-width-expand uk-text-center">
			                <h3 class="uk-card-title uk-margin-remove-bottom">{$_G['username']}</h3>
			            </div>
			        </div>
			    </div>
			</div>
		</div>
			{if $adv[0]['adv']}
			<div class="cl" style="width: auto;margin:auto;overflow: hidden;">
				{eval echo stripcslashes($adv[0]['adv']);}
			</div>
			{/if}
			<div class="border-cc uk-margin-top">
				<div class="back-top">{lang jameson_read:yuedubang}</div>
				<ul class="uk-margin-remove pl10 pr10 uk-list-paihang">
					{loop $paihangbang['yuedu'] $k $book}
						{if $k < 12}
						<li class="uk-text-truncate">
							<span class="num num_{$k}">{eval echo $k+1;}</span>
							<a href="{eval echo jamesonurl('book',$book['book_id']);}">{$book['book_name']}</a>
						</li>
						{/if}
					{/loop}
				</ul>
			</div>
			{if $adv[1]['adv']}
			<div class="cl" style="width: auto;margin:auto;overflow: hidden;">
				{eval echo stripcslashes($adv[1]['adv']);}
			</div>
			{/if}
			<div class="border-cc uk-margin-top">
				<div class="back-top">{lang jameson_read:shoucangbang}</div>
				<ul class="uk-margin-remove pl10 pr10 uk-list-paihang">
					{loop $paihangbang['shoucang'] $k $book}
						{if $k < 12}
						<li class="uk-text-truncate">
							<span class="num num_{$k}">{eval echo $k+1;}</span>
							<a href="{eval echo jamesonurl('book',$book['book_id']);}">{$book['book_name']}</a>
						</li>
						{/if}
					{/loop}
				</ul>
			</div>
			{if $adv[2]['adv']}
			<div class="cl" style="width: auto;margin:auto;overflow: hidden;">
				{eval echo stripcslashes($adv[2]['adv']);}
			</div>
			{/if}
	</div>
	<div class="uk-width-expand">
		<div class="uk-padding-remove border-cc  uk-margin-left tabtoggle">
			<ul class="uk-margin-remove uk-padding-remove uk-subnav col-6">
			    <li class="{if $_GET['type']=='fav' || !isset($_GET['type'])}uk-active{/if}">
					<a href="./plugin.php?id=jameson_read&contrl=index&act=bookstore&type=fav">{lang jameson_read:yishoucang}</a>
				</li>
				<li class="{if $_GET['type']=='sq'}uk-active{/if}">
					<a href="./plugin.php?id=jameson_read&contrl=index&act=bookstore&type=sq">{lang jameson_read:mybookmark}</a>
				</li>
				<li class="{if $_GET['type']=='fx'}uk-active{/if}">
					<a href="./plugin.php?id=jameson_read&contrl=index&act=bookstore&type=fx">{lang jameson_read:myfenxiang}</a>
				</li>
				<li class="{if $_GET['type']=='ds'}uk-active{/if}">
					<a href="./plugin.php?id=jameson_read&contrl=index&act=bookstore&type=ds">{lang jameson_read:wodedashang}</a>
				</li>
				<li class="{if $_GET['type']=='sp'}uk-active{/if}">
					<a href="./plugin.php?id=jameson_read&contrl=index&act=bookstore&type=sp">{lang jameson_read:touchudeshupiao}</a>
				</li>
				<li class="{if $_GET['type']=='buy'}uk-active{/if}">
					<a href="./plugin.php?id=jameson_read&contrl=index&act=bookstore&type=buy">{lang jameson_read:yidingyue}{lang jameson_read:de}{lang jameson_read:zhangjie}</a>
				</li>
			</ul>
			<ul class="uk-switcher uk-margin-remove uk-padding-remove">
				<li class="{if $_GET['type']=='fav' || !isset($_GET['type'])}uk-active{/if}">
					{if $books}
					<table class="uk-table uk-table-justify uk-table-small updatetable">
						<tbody>
						{loop $books $key $book}
							<tr id="favores_tr_{$book['favore_id']}">
								<td><a href="{eval echo jamesonurl('book',$book['book_id']);}">{$book['book_name']}</a></td>
								<td class="tdcate"><a class="xg1 xs1 xw0" href="./plugin.php?id=jameson_read&contrl=index&act=zuozhe&zuozhe_name={$book['author']}">{$book['author']}</a></td>
								<td class="tdcate">
									{if $book['plan']}{lang jameson_read:yiwanjie}{else}{lang jameson_read:lianzaizhong}{/if}
								</td>
								<td class="tdcate">
									<a href="javascript:;" onclick="jameson.removebookstore(this,'favores',{$book['favore_id']})" class="org">{lang jameson_read:yichushujia}</a>
								</td>
							</tr>
						</tbody>
						{/loop}
					</table>
					<div class="uk-margin-top cl">{$pageshow}</div>
					{else}
						<div class="uk-alert-danger uk-padding" uk-alert>{lang jameson_read:zanwushoucang}</div>
					{/if}
				</li>
				<li class="{if $_GET['type']=='sq'}uk-active{/if}">
					{if $bookssq}
					<table class="uk-table uk-table-justify uk-table-small updatetable">
						<thead>
							<tr class="">
								<th class="tdnum">{lang jameson_read:xuhao}</th>
								<th>{lang jameson_read:zhangjie}</th>
								<th class="tdcate">{lang jameson_read:shuming}</th>
							</tr>
						</thead>
						<tbody>
						{loop $bookssq $key $value}
							<tr>
								<td>{eval echo ++$key;}</td>
								<td><a class="xi2" href="{eval echo jamesonurl('thread',$value['tid'],$value['pid'],$_G['uid']);}{if $value['hash']}#{$value['hash']}{/if}" >{$value['subject']}</td>
								<td><a href="{eval echo jamesonurl('book',$value['book_id']);}">{$value['book_name']}</a></td>
							</tr>
						{/loop}
						</tbody>
					</table>
					<div class="uk-margin-top cl">{$pageshow}</div>
					{else}
						<div uk-alert class="uk-alert-danger uk-padding">{lang jameson_read:zanwushuqian}</div>
					{/if}
				</li>
				<li class="{if $_GET['type']=='fx'}uk-active{/if}">
					{if $booksfx}
					<table class="uk-table uk-table-justify uk-table-small updatetable">
						<thead>
							<tr class="">
								<th class="tdnum">{lang jameson_read:xuhao}</th>
								<th>{lang jameson_read:fenxiangzhangjie}</th>
								<th class="tdcate">{lang jameson_read:fenxiangyonghushu}</th>
								<th class="tdcate">{lang jameson_read:huodejiangli}/{$_G['jameson_read']['trametitle']}</th>
							</tr>
						</thead>
						<tbody>
						{loop $booksfx $key $value}
							<tr>
								<td>{eval echo ++$key;}</td>
								<td><a class="xi2" href="jamesonurl('book',$value['book_id'])">[{$value['book_name']}]</a> ---&gt; <a href="{eval echo jamesonurl('tdread',$value['tid'])}&fxuid={$_G['uid']}" class='xi2'>{$value['subject']}</td>
								<td>{$value['usernums']}</td>
								<td>{$value['jianglinums']}</td>
							</tr>
						{/loop}
						</tbody>
					</table>
					<div class="uk-margin-top cl">{$pageshow}</div>
					{else}
						<div uk-alert class="uk-alert-danger uk-padding">{lang jameson_read:zanwufenxiang}</div>
					{/if}
				</li>
				<li class="{if $_GET['type']=='ds'}uk-active{/if}">
		    		{if $booksds}
			    	<table class="uk-table uk-table-justify uk-table-small updatetable">
			    		<thead>
			    		<tr class="">
			    			<th class="tdnum">{lang jameson_read:xuhao}</th>
			    			<th class="">{lang jameson_read:shuming}</th>
			    			<th class="tdcate">{lang jameson_read:zuozhe}</th>
			    			<th class="tdauthor">{lang jameson_read:dashangjine}/{$_G['jameson_read']['dstrametitle']}</th>
			    			<th class="tdauthor">{lang jameson_read:dashangshijian}</th>
			    		</tr>
			    		</thead>
			    		<tbody>
			    		{loop $booksds $key $value}
			    		<tr id="">
			    			<td>{eval echo ++$key;}</td>
			    			<td><a href="{eval echo jamesonurl('book',$value['book_id']);}" class="xi2">{$value['book_name']}</a></td>
			    			<td><a {if $value['author']} href="{eval echo jamesonurl('zuozhe',$value['author']);}" {else} href="{eval echo jamesonurl('zuozhe',$value['uid'])}"{/if}>{$value['author']}</a></td>
			    			<td>{$value['price']}</td>
			    			<td>{eval echo date('Y-m-d H:i:s',$value['addtime']);}</td>
			    		</tr>
			    		{/loop}
			    		</tbody>
			    	</table>
			    	<div class="uk-margin-top cl">{$pageshow}</div>
			    	{else}
			    	<div class="uk-padding uk-alert-danger" uk-alert>{lang jameson_read:zanwudashangjilu}</div>
		    		{/if}
				</li>
				<li class="{if $_GET['type']=='sp'}uk-active{/if}">
		    		{if $shupiaos}
			    	<table class="uk-table uk-table-justify uk-table-small updatetable">
			    		<thead>
			    		<tr class="">
			    			<th class="tdnum">{lang jameson_read:xuhao}</th>
			    			<th class="">{lang jameson_read:shuming}</th>
			    			<th class="tdcate">{lang jameson_read:zuozhe}</th>
			    			<th class="">{lang jameson_read:shupiao}/{lang jameson_read:huafei}</th>
			    			<th class="tdauthor">{lang jameson_read:toupiao}{lang jameson_read:shijian}</th>
			    		</tr>
			    		</thead>
			    		<tbody>
			    		{loop $shupiaos $key $value}
			    		<tr id="">
			    			<td>{eval echo ++$key;}</td>
			    			<td><a href="{eval echo jamesonurl('book',$value['book_id']);}" class="xi2">{$value['book_name']}</a></td>
			    			<td><a {if $value['author']} href="{eval echo jamesonurl('zuozhe',$value['author']);}" {else} href="{eval echo jamesonurl('zuozhe',$value['uid'])}"{/if}>{$value['author']}</a></td>
			    			<td>{$value['name']}/{$value['money']} {$value['exid']}</td>
			    			<td>{eval echo date('Y-m-d H:i:s',$value['addtime']);}</td>
			    		</tr>
			    		{/loop}
			    		</tbody>
			    	</table>
			    	<div class="uk-margin-top cl">{$pageshow}</div>
			    	{else}
						<div class="uk-padding uk-alert-danger" uk-alert>{lang jameson_read:zanwujilu}</div>
			    	{/if}
				</li>
				<li class="{if $_GET['type']=='buy'}uk-active{/if}">
		    		{if $booksbuytid}
			    	<table class="uk-table uk-table-justify uk-table-small updatetable">
			    		<thead>
			    		<tr class="">
			    			<th class="tdnum">{lang jameson_read:xuhao}</th>
			    			<th class="">{lang jameson_read:zhangjie}</th>
			    			<th class="tdauthor">{lang jameson_read:shoujia}/{$_G['jameson_read']['trametitle']}</th>
			    			<th class="tdauthor">{lang jameson_read:shijian}</th>
			    		</tr>
			    		</thead>
			    		<tbody>
			    		{loop $booksbuytid $key $value}
			    		<tr id="">
			    			<td>{eval echo ++$key;}</td>
			    			<td><a href="{eval echo jamesonurl('thread',$value['tid'],$value['pid'],$_G['uid']);}" class="xi2">{$value['subject']}</a></td>
			    			<td>{$value['price']}</td>
			    			<td>{eval echo dgmdate($value['addtime']);}</td>
			    		</tr>
			    		{/loop}
			    		{eval $key = $key?($key+1):0;}
			    		{loop $booksbuybook $k $value}
			    		<tr id="">
			    			<td>{eval echo $key+($k+1);}</td>
			    			<td>[{lang jameson_read:zhengbengoumai}]<a href="{eval echo jamesonurl('book',$value['book_id']);}" class="xi2">{$value['book_name']}</a></td>
			    			<td>{$value['bookmoney']}</td>
			    			<td>{eval echo dgmdate($value['addtime']);}</td>
			    		</tr>
			    		{/loop}
			    		</tbody>
			    	</table>
			    	<div class="uk-margin-top cl">{$pageshow}</div>
			    	{else}
			    	<div class="uk-padding uk-alert-danger" uk-alert>{lang jameson_read:zanwujilu}</div>
		    		{/if}
				</li>
			</ul>
		</div>
	</div>
</div>

<!--[diy=diy2]--><div id="diy2" class="area"></div><!--[/diy]-->
{subtemplate jameson_read:gjj/read_footer}